fn: <
[contents]

Contents

Syntax

The syntax for < calls is:

f++:  
<(params)

n++:  
@<(params)

Description

< is the relational less than operator, it takes a non-zero number of input parameters, if all parameters are less than the parameters following it returns 1, otherwise it returns 0.

Note: It is typically faster to use exprtk for relational operators, plus the syntax is nicer.

f++ example

Examples of < being used with f++:

  1. for(int i=0; <(i, 10); i+=1)
  2. console("i: ", i)

  1. int a=0, b=1, c=2
  2. console(<(a, b, c))
  3. console(<(c, a, b))

n++ example

Examples of < being used with n++:

  1. @for(int i=0; <(i, 10); i+=1)
  2. @console("i: ", i)

  1. @int a=0, b=1, c=2
  2. @console(@<(a, b, c))
  3. @console(@<(c, a, b))